<?php
error_reporting(0);
echo "
<head>
	<meta charset=\"utf-8\">
	<title id = \"titulo_pagina\"></title>
	<link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css\">
	<link href=\"../../css/styles.css\" rel=\"stylesheet\">
	<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js\"></script>
	<script src=\"https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js\"></script>

	<script type=\"text/javascript\">
		function show()
		{
			var user = '".$_SESSION['username']."';
			if (user)
			{
				document.getElementById('dropdownMenu1').innerHTML = user;
				document.getElementById('logged-as').innerHTML = \"Logged in as&nbsp;\";
				document.getElementById('dropdown-display').innerHTML = '<div><a href = \"/portal/app/main/perfil.php\" class =\"btn\">Perfil</a></div><div><input class = \" btn\" type = \"submit\" value = \"Desconectar\"></div>';
			}
			else
			{
				document.getElementById('dropdownMenu1').innerHTML = \"Conectarse\";
			}
		}
	</script>
	
</head>
  <body onload = \"show()\">
    <div class=\"navbar navbar-inverse navbar-fixed-top\">
      <div class=\"navbar-inner\">
        <div class=\"container-fluid\">
			<ul class=\"nav navbar-nav\">
			<li><a id = \"nombre-modulo\"class=\"brand\" href=\"#\"></a></li>

			</ul>
			<ul class=\"nav navbar-nav  pull-right\">
			<li><p id = \"logged-as\" class=\"navbar-text\"></p></li>
			<li class=\"navbar-text\">
				<div class=\"dropdown\">
				  <a href=\"#\" class=\"navbar-link\" data-toggle=\"dropdown\" id=\"dropdownMenu1\"></a>
				  <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"dropdownMenu1\">
					<form id = \"dropdown-display\" action = \"../../controlador/acceso.php\" method=\"post\">
						<div id = \"user\" class = \"nombre-form-user\">Usuario</div> <input name = \"user\" class = \"formulario\" type = \"text\" required>
						<div class = \"nombre-form-pass\">Contrase&#241a</div> <input name = \"pass\" class = \"formulario\" type = \"password\" required>
						<input class = \"boton-entrar\" type = \"submit\" value = \"Entrar\">
					</form>
				  </ul>
				</div>
			</li>
		  </ul>
        </div>
      </div>
    </div>
";
?>